<!DOCTYPE html>
<html lang="en">

  <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>05.分页练习</title>
  </head>
  <style>
    * {
      padding: 0;
      margin: 0
    }

    .content {
      margin: 0 auto;
    }

    .content ul {
      list-style-type: none;
    }

    .content ul li {
      border: 1px solid #ccc;
      width: 40px;
      height: 40px;
      display: inline-block;
      text-align: center;
      line-height: 40px;
      cursor: pointer
    }

    .content ul li:first-child {
      width: 88px;
    }

    .content ul li:last-child {
      width: 88px;
    }

    .content ul li:hover {
      border: 1px solid #00c;

    }

    .content ul li a {
      text-decoration: none;
    }

    .content .active {
      border: none;
      font-weight: 700;
    }
  </style>

  <body>
    <!-- div.content>ul>(li>a>{$})*10 -->
    <div class="content">
      <ul>
        <li><a href="">&lt上一页</a></li>
        <li><a href="">1</a></li>
        <li><a href="">2</a></li>
        <li class="active"><a href="">3</a></li>
        <li><a href="">4</a></li>
        <li><a href="">5</a></li>
        <li><a href="">6</a></li>
        <li><a href="">7</a></li>
        <li><a href="">8</a></li>
        <li><a href="">9</a></li>
        <li><a href="">10</a></li>
        <li><a href="">&gt下一页</a></li>
      </ul>
    </div>
  </body>

</html>